home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / pcfilter.arc / PCFILTER.DOC next >
Text File  |  1985-11-30  |  4KB  |  84 lines

  1.                          PCFILTER.EXE
  2.                          ------------
  3.  
  4. Noisy telephone lines during ASCII data transfer often inject
  5. printer control codes into the download file.  Later, when
  6. the file is printed, these extraneous control codes may put
  7. the printer into various unwanted print modes.  PCFILTER will
  8. remove all ASCII codes below SPACE (32) except CR and LF.
  9. Additionally, PCFILTER will optionally remove all ASCII codes
  10. from 128 to 159 (since some editors may ignore the high bit
  11. and interpret them as ASCII 0 to 31), restrict the file to a
  12. particular line width, expand tabs, expand tab stops, and
  13. create a disk file (.PRN) suitable for FILE IMPORT into LOTUS
  14. 1-2-3 for file editing and printing.
  15.  
  16. OPERATING PCFILTER-
  17.  
  18. PCFILTER will create an output file on the same disk as the
  19. input file.  Therefore, before PCFILTER is run, make sure you
  20. have adequate space remaining for the creation of this output
  21. file.
  22.  
  23. A typical command is  'PCFILTER IBMSIG'.  This command will
  24. create a filtered file 'IBMSIG.PRN' on the default disk drive
  25. using the default parameters.
  26.  
  27. The default parameters are-
  28.      Maximum line width (W) - 132 characters
  29.      Replacement ASCII code (R) - SPACE (ASCII 32)
  30.      Output file extension (E) - 'PRN'
  31.      Tab stop expansion (T) - every 8 print positions
  32.      Tab expansion (X) - defaults to (T), above
  33.      Filter of ASCII 128-159 (N) - these codes are filtered
  34.  
  35. Parameter (T) converts TAB STOPS (ASCII 9) in a file to the
  36. number of SPACES (ASCII 32) necessary to create tabular
  37. columns at the specified print positions.  Parameter (X)
  38. converts TAB STOPS to the specified number of ASCII SPACES.
  39. These parameters are MUTUALLY EXCLUSIVE.
  40.  
  41. The general format for PCFILTER is-
  42.  
  43. PCFILTER [d:][path]filename[.ext][-Wx][-Rx][-Ex][-Tx][-Xx]
  44.  
  45. where  -Wx sets maximum line width
  46.        -Rx selects replacement ASCII code
  47.        -Ex specifies output file extension
  48.        -Tx sets tab stop positions
  49.        -Xx specifies tab stop SPACE expansion
  50.        -N  specifies no filter of ASCII 128-159
  51.  
  52. For example, 'PCFILTER IBMSIG.DOC -W80 -R42 -ETXT -X4'
  53. creates the output file IBMSIG.TXT on the default drive with
  54. a maximum line length of 80 characters, ASCII 0-31 and
  55. 128-159 filtered and  replaced with ASCII 42 (*), and all
  56. tabs replaced with 4 SPACES.
  57.  
  58. 'PCFILTER B:IBMSIG -T6 -N' creates the output file IBMSIG.PRN
  59. on drive B:, with a maximum line length ot 132 characters,
  60. ASCII 0-31 filtered and replaced with ASCII 32 (SPACE), and
  61. all tabs replaced with spaces to allow tabular column
  62. printing every 6 print positions.
  63.  
  64. Using PCFILTER with LOTUS 1-2-3
  65. LOTUS 1-2-3 makes a very nice editor when used with PCFILTER
  66. files.  First, create a 'dummy' .WKS file that specifies your
  67. printer output format.  For instance, this .WKS file will
  68. have the page length, printer control codes, and optional
  69. header or footer information specified (for example, use
  70. '@|DATA TRANSFER FILE|PAGE #' as a header and you will get
  71. nicely formatted pages with date and page number at the top
  72. of every page).  File Retrieve this .WKS file, then use File
  73. Import to import your PCFILTER file to the upper left corner
  74. of your blank .WKS file.  Then edit the file with /WDR, F2,
  75. etc., and print the file.  Be sure to NOT use the '-N' option
  76. since Lotus 1-2-3 File Import Text only looks at the lower 7
  77. bits and ASCII 128-159 must therefore be filtered out.
  78.  
  79. Patrick E. O'Farrell
  80. P.O. Box 538
  81. Selah, Wa 98942
  82.  
  83. Data (509) 697-7298
  84.